/************************************************************
* Filename: Vector2D.h
* Purpose: Basic 2D vector math library.
* Author: Jeremy Kings
* Revision: 2 (17 November 2010)
* Base: Vector2D.h - CS529 Project 3
*
* Copyright 2010, Digipen Institute of Technology
************************************************************/
#pragma once

#include <d3dx9.h>

typedef D3DXVECTOR2 Vector2D;
typedef D3DXVECTOR3 Vector3D;
typedef D3DXVECTOR4 Vector4D;

const Vector2D Zero();
Vector2D Vector2DFromAngle(float angle);
Vector2D Vector2DNormalize(Vector2D vec0);
Vector2D Vector2DProject(Vector2D pVec0, Vector2D vec1);
float Vector2DDirection(Vector2D vec0);
float Vector2DLength(Vector2D vec0);
float Vector2DSquareLength(Vector2D vec0);
float Vector2DDistance(Vector2D vec0, Vector2D vec1);
float Vector2DSquareDistance(Vector2D vec0, Vector2D vec1);
float Vector2DDotProduct(Vector2D vec0, Vector2D vec1);
